package com.hoshiibuy.sys.permission.entity.vo;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.hoshiibuy.sys.permission.entity.SysPermissiones;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 表述系统平台功能
 * </p>
 *
 * @author Mr.Wu
 * @since 2019-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysModelsDetailVO对象", description = "表述系统平台功能")
public class SysModelsDetailVO implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id")
	@TableId("id")
	private Long id;

	@ApiModelProperty(value = "编号")
	@TableField("code")
	private String code;

	@ApiModelProperty(value = "上级功能")
	@TableField("parentid")
	private Long parentid;

	@ApiModelProperty(value = "类别")
	@TableField("type")
	private String type;

	@ApiModelProperty(value = "系统名称")
	@TableField("name")
	private String name;

	@ApiModelProperty(value = "系统标题")
	@TableField("title")
	private String title;

	@ApiModelProperty(value = "系统描述")
	@TableField("description")
	private String description;

	@ApiModelProperty(value = "排序")
	@TableField("orders")
	private Long orders;

	@ApiModelProperty(value = "创建时间")
	@TableField("add_time")
	private LocalDateTime addTime;

	@ApiModelProperty(value = "更新时间")
	@TableField("update_time")
	private LocalDateTime updateTime;

	@ApiModelProperty(value = "版本号")
	@TableField("version")
	private Integer version;

	@ApiModelProperty(value = "是否可用 0-不可用 1-可用")
	@TableField("enabled")
	private Integer enabled;

	@TableField(exist = false)
	@ApiModelProperty(value = "权限详情数组")
	private List<SysPermissiones> permissionList;

}
